<?php

namespace IDock\Insurance\JDAL\Response;

use IDock\Http\Response;
use IDock\IDock\IDockEnums;
use IDock\Insurance\JDAL\JDALEnums;
use IDock\Printer\PolicyPaymentPrinter;
use IDock\Printer\VehicleModelPrinter;
use IDock\Printer\VehiclePrinter;

class PolicyPaymentResponse extends AllJDALResponse
{

    /*** @var PolicyPaymentPrinter $printer */
    public $printer = PolicyPaymentPrinter::class;

    public function printerInit(): Response
    {
        $data = $this->getBody();

        $this->printer->payUrl = $data['jumpUrl'] ?? '';

        return $this;
    }
}
